package com.scy.hospitalmanager.mydemo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


/**
 * @Author Jin_zuo_wei
 * @ClassName MyThreadTask
 * @Date 2021-09-20-18:21
 * @PackageName com.scy.hospitalmanager.mydemo
 * @Description 包含定时任务方法的类
 * @Version 1.0.0
 */
@Component
public class MyThreadTask {
    @Autowired
    TestAycnDemo testAycnDemo;
    private int i = 0;
//    @Scheduled(cron = "*/1 * * * * ?")
    public void cancleOrderTask() {
        //实现业务
        testAycnDemo.doAycn();
        testAycnDemo.doAycn();
        testAycnDemo.doAycn();
        testAycnDemo.doAycn();
        testAycnDemo.doAycn();
    }
}
